package com.johson.covid19server.service.impl;

import com.johson.covid19server.dao.CovidCaseDao;
import com.johson.covid19server.pojo.CovidCase;
import com.johson.covid19server.service.CovidCaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CovidCaseServiceImpl implements CovidCaseService {
    @Autowired
    private CovidCaseDao covidCaseDao;

    @Override
    public CovidCase getCovidCaseById(Long id) {
        return covidCaseDao.getCovidCaseById(id);
    }

    @Override
    public List<CovidCase> selectAll() {
        return covidCaseDao.selectAll();
    }

    @Override
    public List<CovidCase> queryByDate(String queryDate) {
        return covidCaseDao.queryByDate(queryDate);
    }
}